package com.hellobike.haxing.modules.operate.enums;

import lombok.Getter;

@Getter
public enum PageStatusEnum {
    B(1, "已发布"),
    C(2, "关闭")
    ;

    PageStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;
    private String desc;

    public static PageStatusEnum getByValue(int value){
        for (int i = 0; i < PageStatusEnum.values().length; i++) {
            PageStatusEnum pageComponentStyleEnum = PageStatusEnum.values()[i];
            if(pageComponentStyleEnum.getValue()==value){
                return pageComponentStyleEnum;
            }
        }
        return null;
    }
}
